package com.lam.common.components.captcha.enums;

public enum CaptchaCategoryEnum {
	
	/** 字符类验证码 */
	CODE("c"),
	/** 图形类验证码 */
	PICTURE("p"),
	;
	
	private String name;

	private CaptchaCategoryEnum(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public static CaptchaCategoryEnum value(String name) {
		for (CaptchaCategoryEnum v : values()) {
			if(v.name.equalsIgnoreCase(name)) {
				return v;
			}
		}
		return null;
	}

}
